
project(test_boost_ptr)

set(CMAKE_CXX_STANDARD 11)

set(CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -fpermissive -std=c++11" )

find_package(Boost  REQUIRED system thread)
include_directories(${Boost_INCLUDE_DIRS})

add_executable(class_wrap class_wrap.cpp)
target_link_libraries(class_wrap ${Boost_LIBRARIES})

add_executable(simple simple.cpp)
target_link_libraries(simple ${Boost_LIBRARIES})

add_executable(this_ptr this_ptr.cpp)
target_link_libraries(this_ptr ${Boost_LIBRARIES})

add_executable(weak_ptr1 weak_ptr1.cpp)
target_link_libraries(weak_ptr1 ${Boost_LIBRARIES})

add_executable(weak_ptr2 weak_ptr2.cpp)
target_link_libraries(weak_ptr2 ${Boost_LIBRARIES})
